/**
 * @author Yura Zhloba
 * concise way to set width and height to 100%
 * can be mixed to any class which has properties "percentWidth" and "percentHeight"
 */

//noinspection JSUnusedGlobalSymbols
public function set fit(value : Boolean) : void
{
	if(value)
	{
		percentWidth = 100;
		percentHeight = 100;
	}
	else
	{
		percentWidth = NaN;
		percentHeight = NaN;
	}
}